using System.Collections.Generic;
using System.Linq;
using UnityEngine;

[CreateAssetMenu(fileName = "Effect14-给目标扣几血", menuName = "Skill/Effect/Effect14-给目标扣几血", order = 14)]
public class Effect14 : EffectBase
{
    public int hpCount;
    public override void Apply(Pair pair, GameEvent e, List<Chess> targets)
    {
        if(targets == null || targets.Count == 0)return;

        foreach (var target in targets)
        {
            target.BeAttack(hpCount);
        }
    }
}